package com.bw.video_module.video;

import com.bw.common.mvvm.model.BaseModel;
import com.bw.network_sdk.RetrofitManager;
import com.bw.network_sdk.entity.BaseEntity;
import com.bw.network_sdk.videoentity.VideoEntity;

import io.reactivex.Observable;

public class VideoModel extends BaseModel {
    public Observable<BaseEntity> requestVideo(int feedId,String feedType, int pageCount, int userId){
        Observable<VideoEntity> videoEntityObservable =
                RetrofitManager.getInstance()
                .getRetrofit()
                .create(ApiService.class)
                .requestVideo(feedId, feedType, pageCount, userId);
        return checkNetWork(videoEntityObservable);
    }
}
